﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;
using System.Runtime.Serialization.Formatters.Binary;
using System.Runtime.Serialization;


using BeeZ.CommonObjects.Interfaces;

namespace BeeZ.CommonObjects
{
    namespace Honey
    {
        [Serializable()]
        public abstract class AbstractHoney : IHoney
        {
            protected Hashtable infoTable;

            public AbstractHoney(Hashtable ht)
            {
                infoTable = ht;
            }

            public Object GetProperty(string s)
            {
                return infoTable[s];

            }

            public string GetFriendlyMessage()
            {
                string message = infoTable["Comment"].ToString();
                if (message == null)
                {
                    return "Nothing to say";
                }
                else
                {
                    return message;
                }
            }



        }

        [Serializable()]
        public class SimpleHoney : AbstractHoney
        {
            public SimpleHoney(Hashtable ht)
                : base(ht)
            {
            }

        }

    }
}